styleproperties: Rename enum value
authorBenjamin Otte <otte@redhat.com>
Tue, 31 May 2011 10:18:55 +0000 (12:18 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Jun 2011 00:03:52 +0000 (02:03 +0200)
I want to use that same enum value elsewhere.

gtk/gtkstyleproperties.c

index 9a9e739502ea1c5dce1dffcb1ec5052a0ba49856..dfe79154277c2db8e2d7f8ddbe18f241e294ff05 100644 (file)
@@ -363,7 +363,7 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
 /* GParamSpec functionality */
 
 enum {
-  GTK_STYLE_PROPERTY_INHERIT = 1 << G_PARAM_USER_SHIFT
+  GTK_STYLE_PARAM_INHERIT = 1 << G_PARAM_USER_SHIFT
 };
 
 /**
@@ -387,9 +387,9 @@ gtk_style_param_set_inherit (GParamSpec *pspec,
                              gboolean    inherit)
 {
   if (inherit)
-    pspec->flags |= GTK_STYLE_PROPERTY_INHERIT;
+    pspec->flags |= GTK_STYLE_PARAM_INHERIT;
   else
-    pspec->flags &= ~GTK_STYLE_PROPERTY_INHERIT;
+    pspec->flags &= ~GTK_STYLE_PARAM_INHERIT;
 }
 
 /**
@@ -405,7 +405,7 @@ gtk_style_param_set_inherit (GParamSpec *pspec,
 gboolean
 gtk_style_param_get_inherit (GParamSpec *pspec)
 {
-  return (pspec->flags & GTK_STYLE_PROPERTY_INHERIT) ? TRUE : FALSE;
+  return (pspec->flags & GTK_STYLE_PARAM_INHERIT) ? TRUE : FALSE;
 }
 
 /* GtkStyleProperties methods */